package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HealthPunchLogMapper;
import com.ruoyi.system.domain.HealthPunchLog;
import com.ruoyi.system.service.IHealthPunchLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * HealthPunchLogService业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-08
 */
@Service
public class HealthPunchLogServiceImpl implements IHealthPunchLogService 
{
    @Autowired
    private HealthPunchLogMapper healthPunchLogMapper;

    /**
     * 查询HealthPunchLog
     * 
     * @param id HealthPunchLog主键
     * @return HealthPunchLog
     */
    @Override
    public HealthPunchLog selectHealthPunchLogById(String id)
    {
        return healthPunchLogMapper.selectHealthPunchLogById(id);
    }

    /**
     * 查询HealthPunchLog列表
     * 
     * @param healthPunchLog HealthPunchLog
     * @return HealthPunchLog
     */
    @Override
    public List<HealthPunchLog> selectHealthPunchLogList(HealthPunchLog healthPunchLog)
    {
        return healthPunchLogMapper.selectHealthPunchLogList(healthPunchLog);
    }

    @Override
    public List<HealthPunchLog> selectUnHealthPunchLogList(HealthPunchLog healthPunchLog) {
        return healthPunchLogMapper.selectUnHealthPunchLogList(healthPunchLog);
    }

    /**
     * 新增HealthPunchLog
     * 
     * @param healthPunchLog HealthPunchLog
     * @return 结果
     */
    @Override
    public int insertHealthPunchLog(HealthPunchLog healthPunchLog)
    {
        return healthPunchLogMapper.insertHealthPunchLog(healthPunchLog);
    }

    /**
     * 修改HealthPunchLog
     * 
     * @param healthPunchLog HealthPunchLog
     * @return 结果
     */
    @Override
    public int updateHealthPunchLog(HealthPunchLog healthPunchLog)
    {
        return healthPunchLogMapper.updateHealthPunchLog(healthPunchLog);
    }

    /**
     * 批量删除HealthPunchLog
     * 
     * @param ids 需要删除的HealthPunchLog主键
     * @return 结果
     */
    @Override
    public int deleteHealthPunchLogByIds(String ids)
    {
        return healthPunchLogMapper.deleteHealthPunchLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除HealthPunchLog信息
     * 
     * @param id HealthPunchLog主键
     * @return 结果
     */
    @Override
    public int deleteHealthPunchLogById(String id)
    {
        return healthPunchLogMapper.deleteHealthPunchLogById(id);
    }

    @Override
    public int countNotHealthPunchLog() {
        return healthPunchLogMapper.countNotHealthPunchLog();
    }

    @Override
    public List<HealthPunchLog> selectHealthPunchLogByStudentId(String studentId) {
        return healthPunchLogMapper.selectHealthPunchLogByStudentId(studentId);
    }
}
